package jdk8.homework.Demo02;

public class Demo02 {
    public static void main(String[] args) {
        invokeCalc(120, 130, (int a, int b) -> {
            return a + b;
        });
    }

    private static void invokeCalc(int a, int b, Calculator calculator) {
        int result = calculator.calc(a, b);
        System.out.println("结果是：" + result);
    }
}
